//
//  LJTag.h
//  LJClientKit
//
//  Created by che on 13/7/09.
//  Copyright 2009 AntonChebotaev. All rights reserved.
//	

#import <Cocoa/Cocoa.h>

// Exceptions
FOUNDATION_EXPORT NSString * const LJTagBadInitException;

@interface LJTag : NSObject <NSCoding> {
	NSString * _name;
	int _uses;
}

@property (readonly) NSString * name;
@property (readonly) int uses;

- (id)initWithName:(NSString *)name;
+ (id)tagWithName:(NSString *)name;

- (id)initWithName:(NSString *)name uses:(int)usesCount;
+ (id)tagWithName:(NSString *)name uses:(int)usesCount;

- (id)initWithCoder:(NSCoder *)decoder;
- (void)encodeWithCoder:(NSCoder *)encoder;

- (BOOL)isEqual:(id)anObject;
- (NSString *)description;
- (NSUInteger)hash;

@end
